#include <stdio.h>

int main() {
    int nums[] = {5, 7, 1, 47, 6, 9, 8, 10, 6, 3, 4};

    for (int i = 0; i < sizeof(nums) / 4 - 1; ++i) {
        _Bool flag = 0;
        for (int j = 1; j < sizeof(nums) / 4 - i; ++j) {
            if(nums[j - 1] > nums[j]){
                int temp = nums[j - 1];
                nums[j - 1] = nums[j];
                nums[j] = temp;
                flag = 1;
            }
        }
        if (flag == 0) break;
    }

    for (int i = 0; i < sizeof(nums) / 4; ++i) {
        printf("%d ",nums[i]);
    }
}